import Styles from './index.module.less'
import Link from 'next/link'
import { Zanimg } from '../Images'
import { Tl_timestamp2 } from '@/utils/tools'
function Item({data}){
    return (
        <div className={Styles.cont}>
            <Link href={'/detail/'+data._id} target='_blank'>
                <div className='tit'>{data.title}</div>
            </Link>
            
            <div className='textbox txt-cut'>
                {data.content.replace(/<[^>]+>/g, "")}
            </div>
            <p>
                {data.nickname||data.account}&nbsp;&nbsp;
                <span>{Tl_timestamp2(data.create_time)}</span>
                <Zanimg />
                {data.likenum}
            </p>
        </div>
    )
}
export default Item